<template>
  <view class="monitor-container">
    <!-- 顶部标题 -->
    <view class="header">
      <text class="back-btn" @click="goBack">‹</text>
      <text class="header-title">健康检测</text>
    </view>

    <!-- 步数显示 -->
    <view class="step-section">
      <view class="step-card">
        <view class="step-icon">
          <image src="/static/images/step-icon.png" class="icon" />
        </view>
        <view class="step-info">
          <view class="step-label">步数</view>
          <view class="step-count">4546</view>
          <view class="step-duration">锻炼时长：5分钟</view>
        </view>
      </view>
    </view>

    <!-- 健康指标 -->
    <view class="health-metrics">
      <view class="metrics-row">
        <view class="metric-item">
          <view class="metric-label">心率</view>
          <view class="metric-value">60-100次/分</view>
          <view class="metric-icon">❤️</view>
        </view>
        <view class="metric-item">
          <view class="metric-label">血压</view>
          <view class="metric-value">128/88mmhg</view>
          <view class="metric-icon">🩺</view>
        </view>
      </view>

      <view class="metric-single">
        <view class="metric-label">体温</view>
        <view class="metric-subtitle">今天</view>
        <view class="metric-large-value">36.8°C</view>
        <view class="metric-icon-large">🌡️</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'HealthMonitorPage',
  data() {
    return {
      
    }
  },
  methods: {
    goBack() {
      uni.navigateBack()
    }
  }
}
</script>

<style lang="scss" scoped>
.monitor-container {
  min-height: 100vh;
  background: #f5f5f5;
}

// 顶部标题
.header {
  display: flex;
  align-items: center;
  padding: 40rpx 32rpx;
  background: white;
  position: relative;
}

.back-btn {
  font-size: 48rpx;
  color: #4CAF50;
  position: absolute;
  left: 32rpx;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 36rpx;
  font-weight: 500;
  color: #333;
}

// 步数区域
.step-section {
  padding: 32rpx;
}

.step-card {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx;
  display: flex;
  align-items: center;
}

.step-icon {
  width: 120rpx;
  height: 120rpx;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 32rpx;
}

.icon {
  width: 60rpx;
  height: 60rpx;
}

.step-info {
  flex: 1;
}

.step-label {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 8rpx;
}

.step-count {
  font-size: 48rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 8rpx;
}

.step-duration {
  font-size: 24rpx;
  color: #999;
}

// 健康指标
.health-metrics {
  padding: 0 32rpx 32rpx;
}

.metrics-row {
  display: flex;
  gap: 20rpx;
  margin-bottom: 20rpx;
}

.metric-item {
  flex: 1;
  background: white;
  border-radius: 16rpx;
  padding: 32rpx;
  position: relative;
}

.metric-label {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 16rpx;
}

.metric-value {
  font-size: 32rpx;
  font-weight: 500;
  color: #4CAF50;
}

.metric-icon {
  position: absolute;
  top: 32rpx;
  right: 32rpx;
  font-size: 40rpx;
}

.metric-single {
  background: white;
  border-radius: 16rpx;
  padding: 32rpx;
  position: relative;
}

.metric-subtitle {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 16rpx;
}

.metric-large-value {
  font-size: 64rpx;
  font-weight: 600;
  color: #333;
}

.metric-icon-large {
  position: absolute;
  bottom: 32rpx;
  right: 32rpx;
  font-size: 60rpx;
}
</style>